<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>
            Conceptos Digitales
            <?php //echo $title_for_layout ?>
        </title>
        <?php echo $html->charset(); ?>
        <?php echo $this->Html->script('prototype'); ?>
        <?php echo $this->Html->script('prototypersv'); ?>
        <?php echo $javascript->link('tiny_mce/tiny_mce.js'); ?>
        <?php echo $html->css('cake.generic'); ?>
        <?php echo $html->css('default_layout'); ?>
        <?php echo $scripts_for_layout ?>

            <script src="/conceptosd/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
            <link href="/conceptosd/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
        </head>
        <body>
            <div id="header">
                <div class="login_panel">
                <?php
                $usuario = $session->read('Auth.User');
                if ($usuario == null) {
                    e('debe ingresar al sistema');
                } else {                     
                    e('Bienvenido ');
                    echo $this->Html->link($usuario['username'], array('controller'=>'users','action' => 'edit_password'),array('title'=>'Ingrese para modificar su contraseña'));
                    e(' ('.$usuario['nombre_completo'] . ')  |  ');
                    echo $html->link(__('Salir', true), array('controller' => 'users', 'action' => 'logout'));                    
                }
                ?>
            </div>
        </div>
        <div class="menu">
            <?php echo $this->element('menu'); ?>
            </div>
            <div id="flashdiv">
            <?php echo $session->flash(); ?>
            </div>
        <?php
                echo $ajax->remoteTimer(array('url' => array('controller' => 'notificador_oi', 'action' => 'verificarOi'), 'update' => 'flashdiv', 'position' => 'bottom', 'frequency' => 10));
                echo $ajax->remoteTimer(array('url' => array('controller' => 'notificador_oi', 'action' => 'verificarOt'), 'update' => 'flashdiv', 'position' => 'bottom', 'frequency' => 10));
        ?>
                <div class="contenedor_principal">
            <?php echo $content_for_layout; ?>
            </div>
            <div>
            <?php echo $this->element('sql_dump'); ?>
        </div>
        <div id="footer">

        </div>
        <script type="text/javascript">
            <!--
            var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"/conceptosd/SpryAssets/SpryMenuBarDownHover.gif", imgRight:"/conceptosd/SpryAssets/SpryMenuBarRightHover.gif"});
            //-->
        </script>
    </body>
</html>
